package jdl.databaseObjects;

public abstract class DbObject {
	private DbObjectState state = DbObjectState.NEW;
	private String name;

	protected DbObject(String name) {
		this.name = name;
	}

	public DbObjectState getState() {
		return state;
	}

	public void toUnchanged() {
		state = DbObjectState.UNCHANGED;
	}

	public String getName() {
		return name;
	}
}
